package com.aloha.boot02.config.prop;

import com.aloha.boot02.domain.User;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author DaiZhiHeng
 * @date 2023/10/2 18:41
 */
@Configuration
@EnableConfigurationProperties(User.class)
public class PropConfig {

    @Resource
    User user;

}

